package com.jiguang.Electricvehicle.app;

import android.app.Application;
import android.text.NoCopySpan;

import me.jessyan.autosize.AutoSize;
import me.jessyan.autosize.AutoSizeConfig;

public class App extends Application {
    private /*volatile*/ static App instance;

    public static App getInstance() {
        return instance;
    }

    public static void setInstance(App application) {
        instance = application;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        setInstance(this);
        initAutoSize();
    }

    /**
     * auto size 初始化
     */
    private void initAutoSize() {
//        AutoSize.initCompatMultiProcess(this);
//        AutoSizeConfig.getInstance()
//                .setCustomFragment(true)
//                .setExcludeFontScale(true)
//                .setLog(false)
//                .setBaseOnWidth(true)
//                .setUseDeviceSize(true);
    }


}
